package com.hfut.jpoa.dao;

import com.hfut.jpoa.common.dto.ResultDto;
import com.hfut.jpoa.common.exception.DaoException;
import com.hfut.jpoa.dto.BusinessInfoDTO;
import com.hfut.jpoa.model.BusinessInfo;

public interface BusinessInfoDAO {
	int deleteByPrimaryKey(Integer businessInfoId) throws DaoException;

	void insert(BusinessInfo record) throws DaoException;

	void insertSelective(BusinessInfo record) throws DaoException;

	BusinessInfo selectByPrimaryKey(Integer businessInfoId) throws DaoException;

	int updateByPrimaryKeySelective(BusinessInfo record) throws DaoException;

	int updateByPrimaryKey(BusinessInfo record) throws DaoException;

	/**
	 * 分页查询
	 * @param condition
	 * @return
	 * @throws DaoException
	 */
	public ResultDto<BusinessInfo> findInfoForPage(BusinessInfoDTO condition)
	        throws DaoException;
}